package top.jbxie.raft.nodeCommon;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 节点配置
 */
@Data
public class NodeConfig {

    // 自身节点地址
    public String selfAddr;

    //所有节点地址
    public List<String> peerAddrs;

}